TlsCertificate.this

Creates a #GTlsCertificate from the data in @file.

If @file cannot be read or parsed, the function will return %NULL and set @error.

Any unknown file types will error with %G_IO_ERROR_NOT_SUPPORTED. Currently only .p12 and .pfx files are supported. See g_tls_certificate_new_from_pkcs12() for more details.

Parameters

file string

file containing a certificate to import

password string

password for PKCS #12 files

Return Value

the new certificate, or %NULL on error

Throws

GException on failure. ConstructionException GTK+ fails to create the object.

Meta

Since

2.72